<?php
namespace app\validate;

use think\Validate;

class CheckCate extends Validate
{

    protected $rule =   [
        'name'  => 'require|length:1,50',
        'e_name'  => 'require|length:1,50',
    ];

    protected $message  =   [
        'name.require' => '请输入分类名称(CN)！',
        'name.length' => '分类名称(CN)在1-50个字符！',
        'e_name.require' => '请输入分类名称(EN)！',
        'e_name.length' => '分类名称(EN)在1-50个字符！',
    ];

}